<%@taglib uri="/tags/struts-html" prefix="html"%>
<%@taglib uri="/tags/struts-bean" prefix="bean"%>
<%@taglib uri="/tags/struts-logic" prefix="logic"%>
<%@taglib uri="/tags/struts-layout" prefix="layout"%>
<%
String accionForm=(String)request.getAttribute("accion");
%> 
<script language="JavaScript" type="text/JavaScript"
	src="../cl/js/jquery-1.5.2.js"></script>
<script language="JavaScript" type="text/JavaScript"
	src="../cl/js/jquery-ui-1.8.11.custom.min.js"></script>
<script language="JavaScript" type="text/JavaScript" 
	src="../cl/js/jquery.validate.js"></script>
<script language="JavaScript" type="text/JavaScript" src="../cl/js/md5.js"></script>	
	
	
<style type="text/css" media="screen">
@import "../cl/css/body.css";
</style>

<style type="text/css" media="screen">
@import "../cl/css/jquery-ui-1.8.11.custom.css";
</style>

<div id="stylized" class="myform"><html:form
	action="TipoFallaAction">
	<h1>Tipos de Fallas/Incidencias</h1>

<label>Descripci&oacute;:</label>

<html:textarea property="nombreTipoFalla"></html:textarea>

<br/><br/>	<br/><br/>
<html:hidden name="a" property="a" value="<%=accionForm%>"></html:hidden>
	<html:submit value="Guardar" />
	<br/><br/>	
</html:form>
</div>

<script type="text/javascript" charset="utf-8">
	//funcion para validar el form 
	document.getElementsByName('TipoFallaForm')[0].id="iTipoFallaForm";
	$(document).ready(function() {
		$("#iTipoFallaForm").validate({
			rules: {
			nombreTipoFalla: {
			  required: true,
			  maxlength: 50
			}		
		  }
		});
	});
</script>


